package org.lixf.services;

import org.lixf.beans.Student;
import org.lixf.dao.IStudentDao;
import org.lixf.dao.StudentDaoImpl;

public class StudentServiceImpl implements IStudentService {

	private IStudentDao studentDao;
	
	public StudentServiceImpl() {
		this.studentDao = new StudentDaoImpl();
	}

	@Override
	public Student checkUser(String num, String password) {
		return studentDao.select(num, password);
	}

	@Override
	public void register(Student student) {
		studentDao.insert(student);
	}

}
